<template>
<<<<<<< HEAD
    <view>This is Mine Page</view>
=======
  <view class="mine-container">
    <!-- 用户信息区域 -->
    <view class="user-info">
      <view class="avatar">
        <uni-icons type="person" size="40" color="#fff"></uni-icons>
      </view>
      <view class="user-details">
        <text class="username">未登录</text>
        <text class="user-desc">点击登录账号</text>
      </view>
    </view>
    
    <!-- 功能区域 -->
    <view class="function-section">
      <view class="function-item" @click="gotoAddAddress">
        <view class="function-icon">
          <uni-icons type="location" size="20" color="#333"></uni-icons>
        </view>
        <text class="function-text">新增收货地址</text>
        <uni-icons type="arrowright" size="16" color="#999"></uni-icons>
      </view>
      <view class="function-item">
        <view class="function-icon">
          <uni-icons type="heart" size="20" color="#333"></uni-icons>
        </view>
        <text class="function-text">我的收藏</text>
        <uni-icons type="arrowright" size="16" color="#999"></uni-icons>
      </view>
      <view class="function-item">
        <view class="function-icon">
          <uni-icons type="staff" size="20" color="#333"></uni-icons>
        </view>
        <text class="function-text">账号管理</text>
        <uni-icons type="arrowright" size="16" color="#999"></uni-icons>
      </view>
    </view>
  </view>
>>>>>>> dev
</template>

<script>
export default {
  methods: {
    gotoAddAddress() {
      uni.navigateTo({
        url: "/pages/Addaddress/index"
      });
    }
  }
}
</script>
<style>
.mine-container {
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* 用户信息区域 */
.user-info {
  display: flex;
  align-items: center;
  padding: 20px 15px;
  background: linear-gradient(to right, #e43130, #ff6b6b);
  color: white;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.username {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.user-desc {
  font-size: 14px;
  opacity: 0.8;
}

/* 功能区域 */
.function-section {
  background-color: white;
  margin-top: 10px;
}

.function-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
}

.function-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.function-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}
</style>
